<template>
  <div>
       <h1>我是老大</h1>
       <button @click="handler">点击我触发$emit函数,让他调用一次</button>
  </div>
</template>

<script>
export default {
  name: '',
  methods: {
    handler(){
      //给弟弟送法拉利
      this.$bus.$emit('car',"法拉利990")
    }
  }
}
</script>

<style scoped>
   div{
     width: 400px;
     height: 200px;
     background: red;
     margin: 20px auto;
   }
</style>
